STEP 5: Because we're going to use similar code for our green and blue values, we should make a custom block.

  • Highlight the LAST TWO lines of code you wrote. Copy the code.
  • Then, follow these directions to create your own custom block.
  • In the title space, type Ask for Color. Paste your code inside your new block. Click Save.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)